#pragma once
#include <fstream>
#include <string>
#include <glad/glad.h>
#include <iostream>
#include <sys/stat.h>
namespace Sivin {

  class SnUtil {

  public:
    static std::string readShaderFromPath(std::string path);
    static GLuint createShaderProgram(const char *vertShaderStr, const char *fragShaderStr);
    static GLuint createTextureId();
    static std::string getGLError(GLenum error);
  private:
    static GLint checkComplieStatus(GLuint shader);

    static GLint checkLinkStatus(GLuint shader);
  };
}// namespace Sivin